<?php
namespace application\Controller;
use \core\lib\model;
use core\Loader;
class Index extends Loader{
	public function index(){
		//echo '类：'.__class__ . '/--方法-/'.__FUNCTION__;
		$model = new model;
		$sql = 'select * from hyy_admin';
		$result = $model->query($sql);
		/* echo "<pre>";
		print_r($result->fetchAll()); */
		/* $conf = \core\lib\Config::get('CTRL','Route');
		$conf = \core\lib\Config::get('ACTION','Route');
		print_r($conf); */
		$helo = '框架启动成功！';
		$this->assign('data',$helo);
		$this->fetch('index.html');
	}
}